<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>/home/http/DsCache/trunk/DsTemplate/test/testTemplate01.php.html</title>
<meta name="Generator" content="Vim/7.2">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#000000" text="#ffffff"><font face="monospace">
<font color="#ffff00">&nbsp;1 </font><font color="#ff40ff">&lt;?php</font><br>
<font color="#ffff00">&nbsp;2 </font><font color="#00ffff">/**</font><br>
<font color="#ffff00">&nbsp;3 </font><font color="#00ffff">&nbsp;* 用于测试的模板文件</font><br>
<font color="#ffff00">&nbsp;4 </font><font color="#00ffff">&nbsp;*</font><br>
<font color="#ffff00">&nbsp;5 </font><font color="#00ffff">&nbsp;* @filesource testTemplate01.php</font><br>
<font color="#ffff00">&nbsp;6 </font><font color="#00ffff">&nbsp;* @package DsTemplate</font><br>
<font color="#ffff00">&nbsp;7 </font><font color="#00ffff">&nbsp;* @subpackage test</font><br>
<font color="#ffff00">&nbsp;8 </font><font color="#00ffff">&nbsp;* @version $id: 0.1, utf8, Sat Jan&nbsp;&nbsp;2 16:52:03 CST 2010</font><br>
<font color="#ffff00">&nbsp;9 </font><font color="#00ffff">&nbsp;* @author LD King &lt;kldscs[at]gmail.com&gt;</font><br>
<font color="#ffff00">10 </font><font color="#00ffff">&nbsp;* @copyright Copyleft (D.) 2007 - 2009 MiFunny China Inc.</font><br>
<font color="#ffff00">11 </font><font color="#00ffff">&nbsp;* @link <a href="http://mifunny.info/">http://mifunny.info/</a></font><br>
<font color="#ffff00">12 </font><font color="#00ffff">&nbsp;* @desc</font><br>
<font color="#ffff00">13 </font><font color="#00ffff">&nbsp;*&nbsp;&nbsp; 模板中含有两个常量:</font><br>
<font color="#ffff00">14 </font><font color="#00ffff">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp; TP 模板根目录, 例 /srv/http/site/templates/</font><br>
<font color="#ffff00">15 </font><font color="#00ffff">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp; DS 目录分隔符, Windows下为 '\' ,Linux下为 '/'</font><br>
<font color="#ffff00">16 </font><font color="#00ffff">&nbsp;*&nbsp;&nbsp; </font><br>
<font color="#ffff00">17 </font><font color="#00ffff">&nbsp;*/</font><br>
<font color="#ffff00">18 </font><br>
<font color="#ffff00">19 </font>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ff40ff">echo</font>&nbsp;'<font color="#ffff00">Start showing....&lt;br/&gt;</font>'<font color="#ff40ff">,</font>_e<font color="#ff40ff">(</font><font color="#ffff00">$</font><font color="#00ffff">abc</font><font color="#ff40ff">)</font><font color="#ff40ff">;</font><br>
<font color="#ffff00">20 </font>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ff40ff">include</font><font color="#ff40ff">(</font>TP<font color="#ffff00">.</font>'<font color="#ffff00">testTemplate02.php</font>'<font color="#ff40ff">)</font><font color="#ff40ff">;</font><br>
<font color="#ffff00">21 </font><font color="#ff40ff">?&gt;</font><br>
<font color="#ffff00">22 </font><font color="#00ffff">&lt;</font><font color="#ffff00">hr</font><font color="#00ffff">/&gt;</font><br>
<font color="#ffff00">23 </font><font color="#00ffff">&lt;</font><font color="#ffff00">br</font><font color="#00ffff">/&gt;</font>包含其他模板时,多目录用: include(TP.'sidebar'.DS.'testSidebar.php');<br>
<font color="#ffff00">24 </font><br>
</font></body>
</html>
